# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=links
pkgver=2.27
pkgrel=0
pkgdesc="Web browser running in both graphics and text mode"
url="http://links.twibright.com/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-or-later WITH OpenSSL-Exception"
subpackages="$pkgname-doc"
makedepends="bzip2-dev openssl1.1-compat-dev zlib-dev libevent-dev zstd-dev"
source="http://links.twibright.com/download/links-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-javascript \
		--disable-graphics \
		--without-x \
		--disable-nls
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8b46472184f2eab1aeca5de9b957a87f475f5acd9801260678b07475cf36afb1a9602e67ef39ad59da90d2d6cee235521db95d93349fd9bd6cee667eab2e5d32  links-2.27.tar.bz2
"
